<template>
  <tr>
    <td><input type="number" v-model.number="item.count" /></td>
    <td>{{ item.goodsName }}</td>
    <td v-show="item.count === 0 ? text : (text = ' ')">{{ text }}</td>
  </tr>
</template>

<script>
export default {
  props: ['item'],
  data() {
    return {
      text: '买完了!!!'
    }
  }
}
</script>

<style></style>
